package com.work.keep.datas;

import java.util.List;

/**
 * Created by dllo on 16/1/21.
 */
public class PlaygroundData {

    /**
     * ok : true
     * data : {"results":[{"_id":"5682551dd1d20e1f26f2a7ed","name":"活力燃脂","photo":"https://dn-keep.qbox.me/misc/2015/12/29/18/547b552aa9c00000.jpg","sort":0,"count":13},{"_id":"56825592922d204caab2061f","name":"腹肌雕刻","photo":"https://dn-keep.qbox.me/misc/2015/12/29/18/547b554056c00000.jpg","sort":1,"count":6},{"_id":"5684d89d8942be144e745231","name":"动作入门","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc433f9400000.jpg","sort":2,"count":4},{"_id":"5684d99b8942be144e745232","name":"跑步基础","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc440c9800000.jpg","sort":3,"count":6},{"_id":"5684df9577e9f961b96d92b3","name":"女生专题","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc44b51400000.jpg","sort":4,"count":5},{"_id":"5684dfab8942be144e745234","name":"办公室健身","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc45b9a000000.jpg","sort":5,"count":2},{"_id":"5684e01a8942be144e745235","name":"康复保健","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc4696d000000.jpg","sort":6,"count":5},{"_id":"5684e07e8942be144e745236","name":"拉伸按摩","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc4743c000000.jpg","sort":7,"count":7},{"_id":"5684e0c98942be144e745237","name":"力量增肌","photo":"https://dn-keep.qbox.me/misc/2015/12/31/17/547dde7cdb000000.jpg","sort":8,"count":6},{"_id":"5684e14377e9f961b96d935f","name":"家庭塑形","photo":"https://dn-keep.qbox.me/misc/2015/12/31/16/547dc48c9ec00000.jpg","sort":9,"count":14}]}
     * errorCode : 0
     * now : 2016-01-21T07:38:12.722Z
     * version : 1.0.0
     */

    private boolean ok;
    private DataEntity data;
    private int errorCode;
    private String now;
    private String version;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isOk() {
        return ok;
    }

    public DataEntity getData() {
        return data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getNow() {
        return now;
    }

    public String getVersion() {
        return version;
    }

    public class DataEntity {
        /**
         * _id : 5682551dd1d20e1f26f2a7ed
         * name : 活力燃脂
         * photo : https://dn-keep.qbox.me/misc/2015/12/29/18/547b552aa9c00000.jpg
         * sort : 0
         * count : 13
         */

        private List<ResultsEntity> results;

        public void setResults(List<ResultsEntity> results) {
            this.results = results;
        }

        public List<ResultsEntity> getResults() {
            return results;
        }

        public class ResultsEntity {
            private String _id;
            private String name;
            private String photo;
            private int sort;
            private int count;

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String get_id() {
                return _id;
            }

            public String getName() {
                return name;
            }

            public String getPhoto() {
                return photo;
            }

            public int getSort() {
                return sort;
            }

            public int getCount() {
                return count;
            }
        }
    }
}
